﻿using Nop.Web.Framework.Models;
using Nop.Web.Framework.Mvc.ModelBinding;

namespace Nop.Web.Areas.Admin.Models.Orders;

/// <summary>
/// Represents a return request action model
/// </summary>
public partial record ReturnRequestActionModel : BaseNopEntityModel, ILocalizedModel<ReturnRequestActionLocalizedModel>
{
    #region Ctor

    public ReturnRequestActionModel()
    {
        Locales = new List<ReturnRequestActionLocalizedModel>();
    }

    #endregion

    #region Properties

    [NopResourceDisplayName("Admin.Configuration.Settings.Order.ReturnRequestActions.Name")]
    public string Name { get; set; }

    [NopResourceDisplayName("Admin.Configuration.Settings.Order.ReturnRequestActions.DisplayOrder")]
    public int DisplayOrder { get; set; }

    public IList<ReturnRequestActionLocalizedModel> Locales { get; set; }

    #endregion
}

public partial record ReturnRequestActionLocalizedModel : ILocalizedLocaleModel
{
    public int LanguageId { get; set; }

    [NopResourceDisplayName("Admin.Configuration.Settings.Order.ReturnRequestActions.Name")]
    public string Name { get; set; }
}